package com.blue.service.job;

import com.baomidou.mybatisplus.extension.service.IService;
import com.blue.po.job.ScheduledJobPO;

import java.util.List;

/**
 * 定时任务表
 *
 * @author cnj
 * @email 15696471158@163.com
 * @date 2023-10-03
 */
public interface IScheduledJobService extends IService<ScheduledJobPO> {
    /**
     * 新增任务调度
     *
     * @param scheduledJobPO
     */
    void add(ScheduledJobPO scheduledJobPO);

    /**
     * 修改任务调度
     *
     * @param scheduledJobPO
     */
    void edit(ScheduledJobPO scheduledJobPO);

    /**
     * 删除任务调度
     *
     * @param ids
     */
    void delete(List<String> ids);

    /**
     * 立即执行任务调度
     *
     * @param scheduledJobPO
     */
    void execute(ScheduledJobPO scheduledJobPO);
}

